package com.itheima.demo;

public class JumpDemo {

    public static void main(String[] args) {

        goJump(new Jump() {

            @Override
            public void add() {

                System.out.println("jump...........");
            }
        });


        goJump( () -> {

            System.out.println("jump...........");
        } );
    }

    public static void goJump(Jump jump){

        jump.add();

    }
}
